Check whether dom is NULL when we handle a watch. This might occur if the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 26 Oct 2005 12:41:00 +0000 (13:41 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 26 Oct 2005 12:41:00 +0000 (13:41 +0100)
commit5c8eb3b72788f4aa3b26462d224376a0e468f9c6
treef8c322d804485f765978c3c12f3d3f33f7f80e54
parentccbd11acd6843de79d50236ee96446cff59eb3b8
Check whether dom is NULL when we handle a watch.  This might occur if the
domain has recently been removed from our list, but with a watch still in
flight.  This should fix the intermittent crash in xenconsoled that is plaguing
us at the moment.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c